﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PublicEntity
{
    /// <summary>
    /// 可协变的返回对象(不支持值类型)
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IResponseBaseResult<out T>
    {
        /// <summary>
        /// 状态
        /// </summary>
        int Status { get; set; }

        /// <summary>
        /// 提示信息
        /// </summary>
        string Message { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        T Data { get; }

        /// <summary>
        /// 是否已处理
        /// </summary>
        bool Bol { get; set; }
    }
}
